package com.hunter.sign.common.constant;

/**
 * Sign系统接口结果常量枚举类
 * Created by hunter on 2017/05/24.
 */
public enum SignResultConstant {

    FAILED(0, "failed"),
    SUCCESS(1, "success"),
    
    UNMATCH_USER(10001, "用户证件号与指纹信息不符"),
    INVALID_TOKEN(10002, "Token已失效"),
    ALREGISTER_USER(10003, "用户已注册"),
    UNKNOWN_WITNESS(10004, "见证员不存在"),
    UNMATCH_WITNESS(10005, "见证员证件号与指纹信息不符"),
    UNKNOWN_DEVICE(10006, "设备不存在"),
    UNKNOWN_USER(10007, "用户不存在"),
    ALREGISTER_WITNESS(10008, "见证员已注册"),
    UNRECOGNIZED_USER_FINGER(10009, "无法识别用户指纹"),
    UNRECOGNIZED_WITNESS_FINGER(10010, "无法识别见证员指纹");

    public int code;

    public String message;

    SignResultConstant(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
